IOMMU/x86: correct page_list_first() use
authorJan Beulich <jbeulich@suse.com>
Tue, 3 Feb 2015 10:38:22 +0000 (11:38 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Feb 2015 10:38:22 +0000 (11:38 +0100)
commit1c3808f4b5249691d9e15ec8d268158d52c6d899
tree4c5eef3328faddd695f38729a894ba26f3531962
parent8f1ddea9f0d757d4c685689c12db8765ae800b1e
IOMMU/x86: correct page_list_first() use

Comparing its result against NULL is unsafe when page lists use normal
list entries for linking together - page_list_empty() needs to be used
instead.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/drivers/passthrough/x86/iommu.c